﻿using System.Windows.Controls;
using System.Windows.Input;
using Microsoft.Practices.Composite.Presentation.Commands;

namespace Core.Infrastructure.CommandExtensions
{
    public class UserControlMouseMoveCommandBehavior : CommandBehaviorBase<UserControl>
    {
        public UserControlMouseMoveCommandBehavior(UserControl targetObject)
            : base(targetObject)
        {
            targetObject.MouseMove += new MouseEventHandler(TargetObjectMouseMove);
        }

        void TargetObjectMouseMove(object sender, MouseEventArgs e)
        {
            base.ExecuteCommand();
        }

    }
}
